﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using QuanLyGiaoVuDAL.DTO;
using QuanLyGiaoVuDAL.Repositories.DatabaseRepositories;

namespace QuanLyGiaoVuService.CommandServices
{
    public class ChiTietThongBaoCommandService:IChiTietThongBaoCommandService
    {
        private IChiTietThongBaoRepository _chiTietThongBaoRepository;
        public ChiTietThongBaoCommandService(IChiTietThongBaoRepository chiTietThongBaoRepository)
        {
            _chiTietThongBaoRepository = chiTietThongBaoRepository;
        }
        public ChiTietThongBaoDTO InsertChiTietThongBao(ChiTietThongBaoDTO chiTietThongBaoDTO)
        {
            return _chiTietThongBaoRepository.InsertChiTietThongBao(chiTietThongBaoDTO);
        }
        public ChiTietThongBaoDTO UPdateChiTietThongBao(ChiTietThongBaoDTO chiTietThongBaoDTO)
        {
            return _chiTietThongBaoRepository.UPdateChiTietThongBao(chiTietThongBaoDTO);
        }
        public bool DeleteChiTietThongBao(Guid MaChiTietThongBao)
        {
            return _chiTietThongBaoRepository.DeleteChiTietThongBao(MaChiTietThongBao);
        }
    }
}
